
//
//  ZFDomeViewController.swift
//  WeiBoAPP
//
//  Created by 张学飞 on 2018/12/29.
//  Copyright © 2018 zxf. All rights reserved.
//

import UIKit

class ZFDomeViewController: ZFBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        title = "第 \(navigationController?.childViewControllers.count ?? 0)个"
    }
    
    //显示好友
    @objc private func showNext ()
    {
        print("下一个")
        let vc  = ZFDomeViewController()
        
        vc.view.backgroundColor = UIColor.random()
        present(vc, animated: true) {
            
        }
//        navigationController?.pushViewController(vc, animated: true)
        
        
    }
}

extension ZFDomeViewController {
    
    override func setupNavUI() {
        super.setupNavUI()
        
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", style: .plain, target: self, action: #selector(showNext))
    }
    
}


